home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / misc / sci / RARS_Amiga_2.lha / RARS / gi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-31  |  1.3 KB  |  83 lines

  1. /*
  2.  * $RCSfile: gi.h $
  3.  *
  4.  * $Author: marcel $
  5.  *
  6.  * $Revision: 1.4 $
  7.  *
  8.  * $Date: 1995/03/31 00:49:13 $
  9.  *
  10.  * $Locker: marcel $
  11.  *
  12.  * $State: Exp $
  13.  *
  14.  * Amiga version
  15.  *
  16.  * Copyright © 1995 Marcel Offermans
  17.  *
  18.  * tabsize = 5
  19.  */
  20.  
  21. #ifndef RARS_GI_H
  22. #define RARS_GI_H
  23.  
  24. #ifndef RARS_OS_H
  25. #include "os.h"
  26. #endif
  27.  
  28. #include <math.h>
  29.  
  30. const double DEGPRAD = 360.0/(2.0 * PI);
  31.  
  32. struct colors {int nose, tail;};
  33.  
  34. enum {
  35.     oBLACK,
  36.     oBLUE,
  37.     oGREEN,
  38.     oCYAN,
  39.     oRED,
  40.     oMAGENTA,
  41.     oBROWN,
  42.     oLIGHTGRAY,
  43.     oDARKGRAY,
  44.     oLIGHTBLUE,
  45.     oLIGHTGREEN,
  46.     oLIGHTCYAN,
  47.     oLIGHTRED,
  48.     oLIGHTMAGENTA,
  49.     oYELLOW,
  50.     oWHITE
  51. };
  52.  
  53. const int TRACK_COLOR = oDARKGRAY;
  54. const int FIELD_COLOR = oGREEN;
  55. const int TEXT_COLOR  = oBLACK;
  56. const int RAIL_COLOR  = oWHITE;
  57.  
  58. extern colors car_colors[];
  59. extern colors car_clrs[];
  60.  
  61. extern double SCALE;
  62. extern double CHR_HGT;
  63. extern double CHR_WID;
  64. extern double X_MAX, Y_MAX;
  65.  
  66. extern struct Window *window_ptr;
  67. extern BOOL available;
  68.  
  69. void resume_normal_display(void);
  70. void draw_line(double, double, double, double);
  71. void rectangle(double, double, double, double);
  72. void set_color(int);
  73. void set_fill_color(int);
  74. void flood_fill(double, double);
  75. void text_output(double, double, char *);
  76. void initialize_graphics(void);
  77.  
  78. void amiga_scoreboard(void);
  79. void amiga_leaders(int);
  80. void amiga_lapper(int, int);
  81.  
  82. #endif /* RARS_GI_H */
  83.